//根据不同的level来判断不同的查看信息
function autoOperate(e) {
    var s = "";
    s += '&nbsp;<a class="mini-button mini-button-info"  onclick="tobaseinfolook()"  >&nbsp;&nbsp;查看&nbsp;&nbsp;</a>&nbsp'
    return s;
}
// 跳转到服刑人员查看界面
function tobaseinfolook() {
    var rows = grid.getSelecteds();
    if (rows.length > 1) {
        mini.alert("请勾选一条数据再查看");

    } else {
        var row = grid.getSelected();
        if (row) {
            mini.open({
                url: "/azbj/baseinfo/tolookview?priNum=" + row.prinum + "&id=" + row.id,
                title: "预安置人员信息查看", width: '68%', height: '80%',
                onload: function () {
                },
                ondestroy: function (action) {
                    grid.reload();
                }
            });
        } else {
            alert("请至少选择一条数据！");
        }
    }
}